/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.taobao.ibatiside.model.mapperv3.impl;

import java.util.Collection;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;

import org.eclipse.emf.ecore.util.BasicFeatureMap;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.InternalEList;

import org.taobao.ibatiside.model.mapperv3.CallStmtType;
import org.taobao.ibatiside.model.mapperv3.Choose;
import org.taobao.ibatiside.model.mapperv3.Foreach;
import org.taobao.ibatiside.model.mapperv3.If;
import org.taobao.ibatiside.model.mapperv3.Include;
import org.taobao.ibatiside.model.mapperv3.Mapperv3Package;
import org.taobao.ibatiside.model.mapperv3.OrderType;
import org.taobao.ibatiside.model.mapperv3.SelectKey;
import org.taobao.ibatiside.model.mapperv3.Set;
import org.taobao.ibatiside.model.mapperv3.Trim;
import org.taobao.ibatiside.model.mapperv3.Where;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Select Key</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getMixed <em>Mixed</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getTgNestedCondition <em>Tg Nested Condition</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getInclude <em>Include</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getTrim <em>Trim</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getWhere <em>Where</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getSet <em>Set</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getForeach <em>Foreach</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getChoose <em>Choose</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getIf <em>If</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getDatabaseId <em>Database Id</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getKeyProperty <em>Key Property</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getOrder <em>Order</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getResultType <em>Result Type</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.SelectKeyImpl#getStatementType <em>Statement Type</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class SelectKeyImpl extends EObjectImpl implements SelectKey {
	/**
	 * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getMixed()
	 * @generated
	 * @ordered
	 */
	protected FeatureMap mixed;

	/**
	 * The default value of the '{@link #getDatabaseId() <em>Database Id</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getDatabaseId()
	 * @generated
	 * @ordered
	 */
	protected static final String DATABASE_ID_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getDatabaseId() <em>Database Id</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getDatabaseId()
	 * @generated
	 * @ordered
	 */
	protected String databaseId = DATABASE_ID_EDEFAULT;

	/**
	 * The default value of the '{@link #getKeyProperty() <em>Key Property</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getKeyProperty()
	 * @generated
	 * @ordered
	 */
	protected static final String KEY_PROPERTY_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getKeyProperty() <em>Key Property</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getKeyProperty()
	 * @generated
	 * @ordered
	 */
	protected String keyProperty = KEY_PROPERTY_EDEFAULT;

	/**
	 * The default value of the '{@link #getOrder() <em>Order</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getOrder()
	 * @generated
	 * @ordered
	 */
	protected static final OrderType ORDER_EDEFAULT = OrderType.BEFORE;

	/**
	 * The cached value of the '{@link #getOrder() <em>Order</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getOrder()
	 * @generated
	 * @ordered
	 */
	protected OrderType order = ORDER_EDEFAULT;

	/**
	 * This is true if the Order attribute has been set.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 * @ordered
	 */
	protected boolean orderESet;

	/**
	 * The default value of the '{@link #getResultType() <em>Result Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getResultType()
	 * @generated
	 * @ordered
	 */
	protected static final String RESULT_TYPE_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getResultType() <em>Result Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getResultType()
	 * @generated
	 * @ordered
	 */
	protected String resultType = RESULT_TYPE_EDEFAULT;

	/**
	 * The default value of the '{@link #getStatementType() <em>Statement Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getStatementType()
	 * @generated
	 * @ordered
	 */
	protected static final CallStmtType STATEMENT_TYPE_EDEFAULT = CallStmtType.STATEMENT;

	/**
	 * The cached value of the '{@link #getStatementType() <em>Statement Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getStatementType()
	 * @generated
	 * @ordered
	 */
	protected CallStmtType statementType = STATEMENT_TYPE_EDEFAULT;

	/**
	 * This is true if the Statement Type attribute has been set.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 * @ordered
	 */
	protected boolean statementTypeESet;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected SelectKeyImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return Mapperv3Package.Literals.SELECT_KEY;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FeatureMap getMixed() {
		if (mixed == null) {
			mixed = new BasicFeatureMap(this, Mapperv3Package.SELECT_KEY__MIXED);
		}
		return mixed;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FeatureMap getTgNestedCondition() {
		return (FeatureMap)getMixed().<FeatureMap.Entry>list(Mapperv3Package.Literals.SELECT_KEY__TG_NESTED_CONDITION);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Include> getInclude() {
		return getTgNestedCondition().list(Mapperv3Package.Literals.SELECT_KEY__INCLUDE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Trim> getTrim() {
		return getTgNestedCondition().list(Mapperv3Package.Literals.SELECT_KEY__TRIM);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Where> getWhere() {
		return getTgNestedCondition().list(Mapperv3Package.Literals.SELECT_KEY__WHERE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Set> getSet() {
		return getTgNestedCondition().list(Mapperv3Package.Literals.SELECT_KEY__SET);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Foreach> getForeach() {
		return getTgNestedCondition().list(Mapperv3Package.Literals.SELECT_KEY__FOREACH);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Choose> getChoose() {
		return getTgNestedCondition().list(Mapperv3Package.Literals.SELECT_KEY__CHOOSE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<If> getIf() {
		return getTgNestedCondition().list(Mapperv3Package.Literals.SELECT_KEY__IF);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getDatabaseId() {
		return databaseId;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setDatabaseId(String newDatabaseId) {
		String oldDatabaseId = databaseId;
		databaseId = newDatabaseId;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.SELECT_KEY__DATABASE_ID, oldDatabaseId, databaseId));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getKeyProperty() {
		return keyProperty;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setKeyProperty(String newKeyProperty) {
		String oldKeyProperty = keyProperty;
		keyProperty = newKeyProperty;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.SELECT_KEY__KEY_PROPERTY, oldKeyProperty, keyProperty));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public OrderType getOrder() {
		return order;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setOrder(OrderType newOrder) {
		OrderType oldOrder = order;
		order = newOrder == null ? ORDER_EDEFAULT : newOrder;
		boolean oldOrderESet = orderESet;
		orderESet = true;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.SELECT_KEY__ORDER, oldOrder, order, !oldOrderESet));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void unsetOrder() {
		OrderType oldOrder = order;
		boolean oldOrderESet = orderESet;
		order = ORDER_EDEFAULT;
		orderESet = false;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.UNSET, Mapperv3Package.SELECT_KEY__ORDER, oldOrder, ORDER_EDEFAULT, oldOrderESet));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isSetOrder() {
		return orderESet;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getResultType() {
		return resultType;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setResultType(String newResultType) {
		String oldResultType = resultType;
		resultType = newResultType;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.SELECT_KEY__RESULT_TYPE, oldResultType, resultType));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CallStmtType getStatementType() {
		return statementType;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setStatementType(CallStmtType newStatementType) {
		CallStmtType oldStatementType = statementType;
		statementType = newStatementType == null ? STATEMENT_TYPE_EDEFAULT : newStatementType;
		boolean oldStatementTypeESet = statementTypeESet;
		statementTypeESet = true;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.SELECT_KEY__STATEMENT_TYPE, oldStatementType, statementType, !oldStatementTypeESet));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void unsetStatementType() {
		CallStmtType oldStatementType = statementType;
		boolean oldStatementTypeESet = statementTypeESet;
		statementType = STATEMENT_TYPE_EDEFAULT;
		statementTypeESet = false;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.UNSET, Mapperv3Package.SELECT_KEY__STATEMENT_TYPE, oldStatementType, STATEMENT_TYPE_EDEFAULT, oldStatementTypeESet));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isSetStatementType() {
		return statementTypeESet;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
		switch (featureID) {
			case Mapperv3Package.SELECT_KEY__MIXED:
				return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
			case Mapperv3Package.SELECT_KEY__TG_NESTED_CONDITION:
				return ((InternalEList<?>)getTgNestedCondition()).basicRemove(otherEnd, msgs);
			case Mapperv3Package.SELECT_KEY__INCLUDE:
				return ((InternalEList<?>)getInclude()).basicRemove(otherEnd, msgs);
			case Mapperv3Package.SELECT_KEY__TRIM:
				return ((InternalEList<?>)getTrim()).basicRemove(otherEnd, msgs);
			case Mapperv3Package.SELECT_KEY__WHERE:
				return ((InternalEList<?>)getWhere()).basicRemove(otherEnd, msgs);
			case Mapperv3Package.SELECT_KEY__SET:
				return ((InternalEList<?>)getSet()).basicRemove(otherEnd, msgs);
			case Mapperv3Package.SELECT_KEY__FOREACH:
				return ((InternalEList<?>)getForeach()).basicRemove(otherEnd, msgs);
			case Mapperv3Package.SELECT_KEY__CHOOSE:
				return ((InternalEList<?>)getChoose()).basicRemove(otherEnd, msgs);
			case Mapperv3Package.SELECT_KEY__IF:
				return ((InternalEList<?>)getIf()).basicRemove(otherEnd, msgs);
		}
		return super.eInverseRemove(otherEnd, featureID, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case Mapperv3Package.SELECT_KEY__MIXED:
				if (coreType) return getMixed();
				return ((FeatureMap.Internal)getMixed()).getWrapper();
			case Mapperv3Package.SELECT_KEY__TG_NESTED_CONDITION:
				if (coreType) return getTgNestedCondition();
				return ((FeatureMap.Internal)getTgNestedCondition()).getWrapper();
			case Mapperv3Package.SELECT_KEY__INCLUDE:
				return getInclude();
			case Mapperv3Package.SELECT_KEY__TRIM:
				return getTrim();
			case Mapperv3Package.SELECT_KEY__WHERE:
				return getWhere();
			case Mapperv3Package.SELECT_KEY__SET:
				return getSet();
			case Mapperv3Package.SELECT_KEY__FOREACH:
				return getForeach();
			case Mapperv3Package.SELECT_KEY__CHOOSE:
				return getChoose();
			case Mapperv3Package.SELECT_KEY__IF:
				return getIf();
			case Mapperv3Package.SELECT_KEY__DATABASE_ID:
				return getDatabaseId();
			case Mapperv3Package.SELECT_KEY__KEY_PROPERTY:
				return getKeyProperty();
			case Mapperv3Package.SELECT_KEY__ORDER:
				return getOrder();
			case Mapperv3Package.SELECT_KEY__RESULT_TYPE:
				return getResultType();
			case Mapperv3Package.SELECT_KEY__STATEMENT_TYPE:
				return getStatementType();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
			case Mapperv3Package.SELECT_KEY__MIXED:
				((FeatureMap.Internal)getMixed()).set(newValue);
				return;
			case Mapperv3Package.SELECT_KEY__TG_NESTED_CONDITION:
				((FeatureMap.Internal)getTgNestedCondition()).set(newValue);
				return;
			case Mapperv3Package.SELECT_KEY__INCLUDE:
				getInclude().clear();
				getInclude().addAll((Collection<? extends Include>)newValue);
				return;
			case Mapperv3Package.SELECT_KEY__TRIM:
				getTrim().clear();
				getTrim().addAll((Collection<? extends Trim>)newValue);
				return;
			case Mapperv3Package.SELECT_KEY__WHERE:
				getWhere().clear();
				getWhere().addAll((Collection<? extends Where>)newValue);
				return;
			case Mapperv3Package.SELECT_KEY__SET:
				getSet().clear();
				getSet().addAll((Collection<? extends Set>)newValue);
				return;
			case Mapperv3Package.SELECT_KEY__FOREACH:
				getForeach().clear();
				getForeach().addAll((Collection<? extends Foreach>)newValue);
				return;
			case Mapperv3Package.SELECT_KEY__CHOOSE:
				getChoose().clear();
				getChoose().addAll((Collection<? extends Choose>)newValue);
				return;
			case Mapperv3Package.SELECT_KEY__IF:
				getIf().clear();
				getIf().addAll((Collection<? extends If>)newValue);
				return;
			case Mapperv3Package.SELECT_KEY__DATABASE_ID:
				setDatabaseId((String)newValue);
				return;
			case Mapperv3Package.SELECT_KEY__KEY_PROPERTY:
				setKeyProperty((String)newValue);
				return;
			case Mapperv3Package.SELECT_KEY__ORDER:
				setOrder((OrderType)newValue);
				return;
			case Mapperv3Package.SELECT_KEY__RESULT_TYPE:
				setResultType((String)newValue);
				return;
			case Mapperv3Package.SELECT_KEY__STATEMENT_TYPE:
				setStatementType((CallStmtType)newValue);
				return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
			case Mapperv3Package.SELECT_KEY__MIXED:
				getMixed().clear();
				return;
			case Mapperv3Package.SELECT_KEY__TG_NESTED_CONDITION:
				getTgNestedCondition().clear();
				return;
			case Mapperv3Package.SELECT_KEY__INCLUDE:
				getInclude().clear();
				return;
			case Mapperv3Package.SELECT_KEY__TRIM:
				getTrim().clear();
				return;
			case Mapperv3Package.SELECT_KEY__WHERE:
				getWhere().clear();
				return;
			case Mapperv3Package.SELECT_KEY__SET:
				getSet().clear();
				return;
			case Mapperv3Package.SELECT_KEY__FOREACH:
				getForeach().clear();
				return;
			case Mapperv3Package.SELECT_KEY__CHOOSE:
				getChoose().clear();
				return;
			case Mapperv3Package.SELECT_KEY__IF:
				getIf().clear();
				return;
			case Mapperv3Package.SELECT_KEY__DATABASE_ID:
				setDatabaseId(DATABASE_ID_EDEFAULT);
				return;
			case Mapperv3Package.SELECT_KEY__KEY_PROPERTY:
				setKeyProperty(KEY_PROPERTY_EDEFAULT);
				return;
			case Mapperv3Package.SELECT_KEY__ORDER:
				unsetOrder();
				return;
			case Mapperv3Package.SELECT_KEY__RESULT_TYPE:
				setResultType(RESULT_TYPE_EDEFAULT);
				return;
			case Mapperv3Package.SELECT_KEY__STATEMENT_TYPE:
				unsetStatementType();
				return;
		}
		super.eUnset(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case Mapperv3Package.SELECT_KEY__MIXED:
				return mixed != null && !mixed.isEmpty();
			case Mapperv3Package.SELECT_KEY__TG_NESTED_CONDITION:
				return !getTgNestedCondition().isEmpty();
			case Mapperv3Package.SELECT_KEY__INCLUDE:
				return !getInclude().isEmpty();
			case Mapperv3Package.SELECT_KEY__TRIM:
				return !getTrim().isEmpty();
			case Mapperv3Package.SELECT_KEY__WHERE:
				return !getWhere().isEmpty();
			case Mapperv3Package.SELECT_KEY__SET:
				return !getSet().isEmpty();
			case Mapperv3Package.SELECT_KEY__FOREACH:
				return !getForeach().isEmpty();
			case Mapperv3Package.SELECT_KEY__CHOOSE:
				return !getChoose().isEmpty();
			case Mapperv3Package.SELECT_KEY__IF:
				return !getIf().isEmpty();
			case Mapperv3Package.SELECT_KEY__DATABASE_ID:
				return DATABASE_ID_EDEFAULT == null ? databaseId != null : !DATABASE_ID_EDEFAULT.equals(databaseId);
			case Mapperv3Package.SELECT_KEY__KEY_PROPERTY:
				return KEY_PROPERTY_EDEFAULT == null ? keyProperty != null : !KEY_PROPERTY_EDEFAULT.equals(keyProperty);
			case Mapperv3Package.SELECT_KEY__ORDER:
				return isSetOrder();
			case Mapperv3Package.SELECT_KEY__RESULT_TYPE:
				return RESULT_TYPE_EDEFAULT == null ? resultType != null : !RESULT_TYPE_EDEFAULT.equals(resultType);
			case Mapperv3Package.SELECT_KEY__STATEMENT_TYPE:
				return isSetStatementType();
		}
		return super.eIsSet(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		if (eIsProxy()) return super.toString();

		StringBuffer result = new StringBuffer(super.toString());
		result.append(" (mixed: ");
		result.append(mixed);
		result.append(", databaseId: ");
		result.append(databaseId);
		result.append(", keyProperty: ");
		result.append(keyProperty);
		result.append(", order: ");
		if (orderESet) result.append(order); else result.append("<unset>");
		result.append(", resultType: ");
		result.append(resultType);
		result.append(", statementType: ");
		if (statementTypeESet) result.append(statementType); else result.append("<unset>");
		result.append(')');
		return result.toString();
	}

} //SelectKeyImpl
